import java.util.logging.Level;
import java.util.logging.Logger;

public class test_logger { 
        public static void main(String[] args) { 
                Logger log = Logger.getLogger("lavasoft"); 
                log.setLevel(Level.INFO); 
                Logger log1 = Logger.getLogger("lavasoft"); 
                System.out.println(log==log1);     //true 
                Logger log2 = Logger.getLogger("lavasoft.blog"); 
                log2.setLevel(Level.WARNING); 
                
                test(log);

                log.info("aaa"); 
                log2.info("bbb"); 
                log2.fine("fine"); 
        } 
        public static void test(Logger log) {
        	log.info("aaa");
        }
} 

class Log {
	private Logger log;
	public Log() {
		
	}
	
	public Log(String log_infor) {
		this.log = Logger.getLogger(log_infor);
	}
	
	public void info(String infor) {
		log.setLevel(Level.INFO);
		log.info(infor);
	}
	
	public void warinig(String infor) {
		log.setLevel(Level.WARNING);
		log.fine(infor);
	}
}